package com.xbp.examsystem.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xbp.examsystem.entity.ExamRecord;
import com.xbp.examsystem.vo.ExamRankingVO;
import com.xbp.examsystem.vo.StartExamVo;
import com.xbp.examsystem.vo.SubmitAnswerVo;


import java.util.List;

/**
 * 考试记录Service接口
 * 定义考试记录相关的业务方法
 */
public interface ExamRecordService extends IService<ExamRecord> {

    ExamRecord startExam(StartExamVo startExamVo);

    ExamRecord getExamRecordDetailsById(Integer id);

    void submitAnswers(Integer examRecordId, List<SubmitAnswerVo> answers);

    void deleteExamRecordById(Integer id);

    List<ExamRankingVO> getExamRanking(Integer paperId, Integer limit);
}